<?php

namespace app\admin\validate;

use think\db\exception\DataNotFoundException;
use think\db\exception\DbException;
use think\db\exception\ModelNotFoundException;
use think\Validate;

class Funding extends Validate
{
    protected $rule = [
        'id' => 'require',
        'status' => 'require',
    ];

    protected $scene=[
        'create'=>['status'],
        'update'=>['status','id'],
    ];

    protected $message = [
        'status' => '状态不能为空',
        'id' => 'ID不能为空',
    ];
}
